package com.sec.util;

import java.util.Comparator;

import android.gesture.Prediction;

public class ComparatorPredictions implements Comparator {

	@Override
	public int compare(Object object1, Object object2) {
		Prediction p1 = (Prediction)object1;
		Prediction p2 = (Prediction)object2;
		double s1 = p1.score;
		double s2 = p2.score;
		int flag = 0;
		if(s1<s2){
			flag = 1;
		}else{
			flag = -1;
		}
		return flag;
	}

	
}
